package com.dy.lock.screen.dao.impl;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.CustomerBlacklistDao;
import com.dy.lock.screen.pojo.CustomerBlacklistInfo;

@Repository("customerBlacklistDao")
public class CustomerBlacklistDaoImpl extends
		BaseDaoImpl<CustomerBlacklistInfo, String> implements
		CustomerBlacklistDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.CustomerBlacklistMapper";
	}

	@Override
	public CustomerBlacklistInfo queryByPrimaryKey(String id) {
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".selectByPrimaryKey", id);
	}

	@Override
	public CustomerBlacklistInfo queryByBlackIdAndBeBlackId(
			CustomerBlacklistInfo blacklistInfo) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryByBlackIdAndBeBlackId",
				blacklistInfo);
	}

//	@Override
//	public int delete(CustomerBlacklistInfo blacklistInfo) {
//		// TODO Auto-generated method stub
//		return this.getSqlSession().delete(getQueryNamespace() + ".delete",
//				blacklistInfo);
//	}

}
